Skip to content

feat(summary): open a title's living poster full screen - #3898

Merged
vladjerca merged 1 commit into
mainfrom
feat/living-poster-fullscreen
Dec 2, 2026
Merged

vladjerca merged 1 commit into
mainfrom
feat/living-poster-fullscreen

Conversation

@vladjerca

Copy link
Copy Markdown
Contributor

Adds a full-screen page for a title's living poster: /movies/:slug/living-poster and /shows/:slug/living-poster.

  • Black page, no navbar, the poster as tall as the window, with the real player (motion and effects).
  • The close button and Escape go back to the title's page.
  • While the summary loads, the still poster holds the final size, so nothing jumps.
  • If the title has no living poster, or motion is reduced, the still poster stays with one short line of text.
  • Same feature flag and audience as the summary's living poster.
  • The slug can also be a numeric Trakt id, since the summary request takes either.

Testing

  • vitest on the two new specs: 7 pass. Each spec was checked to fail with its guarded branch broken.
  • bun run check: 0 errors.
  • eslint and prettier --check clean on the changed files.
  • Local build, viewed in Chrome: a movie and a show with a living poster play full screen, a title without one shows the still poster and the note, Escape returns to the title page.

Not verified

  • Signed in as a director account: the local check ran with the audience check turned off on my machine (not part of this change).

Add /movies/:slug/living-poster and /shows/:slug/living-poster, a black page that shows only the living poster with the real player, gated like the summary poster. The static poster holds the final size while loading, and stays with one line of copy when motion is reduced or the title has no living poster. A close button and Escape return to the title's summary page.
@vladjerca
vladjerca marked this pull request as ready for review December 2, 2026 21:50
@vladjerca
vladjerca merged commit cc16d37 into main Dec 2, 2026
27 checks passed
@vladjerca
vladjerca deleted the feat/living-poster-fullscreen branch December 2, 2026 21:50
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-02T21:54:34.818697Z 7056464 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 705646475d

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

<div class="trakt-full-screen-living-poster">
<div class="full-screen-poster-still" class:is-settled={isSettled}>
{#if poster}
<CrossOriginImage src={poster.src} alt={poster.alt} loading="eager" />

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Prioritize the full-screen hero image

On a direct visit this still poster is the page's hero/LCP image, but it opts into eager loading without fetchpriority="high"; after the summary request resolves, the browser can therefore schedule the only visible image at its default priority. Pass high fetch priority at this call site, as the existing summary poster does for priority images. .agents/rules/performance.mdL348-L354

Useful? React with 👍 / 👎.

);
</script>

<LivingPosterPage type="movie" slug={params.slug} media={$movie.data} />

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Wire the full-screen route into the summary UI

A repo-wide search for living-poster finds only these new route definitions and their implementation, with no link or URL builder from either movie or show summary. Consequently directors cannot discover or open this feature through the application—the existing summary poster remains inert or retains its trailer/streaming link—so an appropriately gated summary control needs to navigate to this route.

Useful? React with 👍 / 👎.

if (event.key !== "Escape") return;

// eslint-disable-next-line svelte/no-navigation-without-resolve
goto(closeHref);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Close the poster without adding another history entry

When this route is reached from a title page, both this goto and the close button's ordinary link push the title URL as a new entry instead of closing the current entry. Pressing browser Back after closing therefore reopens the living-poster page, producing a navigation loop; use back/replace semantics consistently for both close paths.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant